home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / CSCROLLL / CSCROLLL.H < prev    next >
Text File  |  1992-02-19  |  1KB  |  42 lines

  1. /*************************************************************************************
  2.  
  3.  CScrollListDragger.h
  4.     
  5.     SUPERCLASS = CMouseTask
  6.     
  7.         by Dave Harkness
  8.  
  9. *************************************************************************************/
  10.  
  11.  
  12. #define _H_CScrollListDragger
  13.  
  14. #include "CMouseTask.h"
  15. #include "LongCoordinates.h"
  16.  
  17.  
  18. class CScrollList;
  19. class CArray;
  20.  
  21. class CScrollListDragger : public CMouseTask
  22. {
  23. public:
  24.  
  25.     void IScrollListDragger( CScrollList *aTable, short theModifiers, long selFlags);
  26.     
  27.     virtual void    Dispose( void);
  28.     
  29.     virtual void    BeginTracking( LongPt *startPt);
  30.     virtual void    KeepTracking( LongPt *currPt, LongPt *prevPt, LongPt *startPt);
  31.     virtual void    EndTracking( LongPt *currPt, LongPt *prevPt, LongPt *startPt);
  32.  
  33. protected:
  34.  
  35.     CScrollList        *itsTable;            // client table
  36.     CArray            *itsArray;            // client array
  37.     Cell            movingCell;            // cell we're moving
  38.     LongRect        dragRect;            // dragging rect
  39.     LongRect        clipRect;            // rectangle to clip to
  40.     long            selectionFlags;     // local copy of table's flags 
  41.     short            modifierKeys;        // modifier keys from the mousedown event
  42. };